package com.itheima.tlias84.controller;

import com.itheima.tlias84.entity.Teacher;
import com.itheima.tlias84.utils.ResultUtil;
import jakarta.annotation.Resource;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
//@RequestMapping("")
public class TestBeanController {

    @Resource(name = "createTeacherTwo")
    Teacher teacher;

    @GetMapping("/createBean")
    public ResultUtil createBean(){
        return ResultUtil.success(teacher);
    }
}
